2008-05-28 Kristian Rietveld <kris@imendio.com>
Bug 449625 - crash in gtk_tree_view_real_move_cursor at
gtktreeview.c:9641
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down):
cursor_offset *must* be larger than background height of the cursor
node, not just equal otherwise there is no guarantee there is a next
node.
svn path=/trunk/; revision=20219
+2008-05-28 Kristian Rietveld <kris@imendio.com>
+
+ Bug 449625 - crash in gtk_tree_view_real_move_cursor at
+ gtktreeview.c:9641
+
+ * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down):
+ cursor_offset *must* be larger than background height of the cursor
+ node, not just equal otherwise there is no guarantee there is a next
+ node.
+
2008-05-28 Michael Natterer <mitch@imendio.com>
* gtk/gtktestutils.c: don't include <gdk/gdktestutils.h>.
_gtk_rbtree_find_offset (tree_view->priv->tree, y,
&cursor_tree, &cursor_node);
- if (tree_view->priv->cursor_offset >= BACKGROUND_HEIGHT (cursor_node))
+ if (tree_view->priv->cursor_offset > BACKGROUND_HEIGHT (cursor_node))
{
_gtk_rbtree_next_full (cursor_tree, cursor_node,
&cursor_tree, &cursor_node);